{yun:}include file="$comstyle/header.htm"{/yun}
<div class="w1000">
  <div class="admin_mainbody"> {yun:}include file="$comstyle/left.htm"{/yun}
    <div class=right_box>
      <div class=admincont_box>
       <div class="com_tit"><span class="com_tit_span">企业资料</span></div>
          <div class="job_list_tit">
         <ul class="">
         <li ><a href="index.php?c=info">基本信息</a></li>
         <li><a href="index.php?c=map">企业地图</a></li>
         <li><a href="index.php?c=news">企业新闻</a></li>
         <li><a href="index.php?c=show">企业环境</a></li>
         <li class="job_list_tit_cur"><a href=" index.php?c=product">企业产品</a></li>
         </ul>
         </div>
         <div class="com_m_search">
          <input  class="com_m_tj" onclick="location.href='index.php?c=product&act=add'" type="button" value="+ 添加产品"> 
   	<form action="index.php" method="get">
		<input name="c" type="hidden" value="product">
        <div class="com_m_search_box">
				 <input name="keyword" type="text" class="com_m_search_box_text" placeholder="请输入产品关键字">
					<input name="" type="submit" class="com_m_search_box_bth" value=" ">
                    </div>
			  </form>
     	</div>
	   <div class="com_body">
        <div class="admin_textbox_04">
          <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
          <form action="index.php" method="get" target="supportiframe" id='myform'>
            <input type="hidden" name="c" value="product" />
            <input type="hidden" name="act" value="del" />
                 <div id="job_checkbokid">
                   <table class="com_table">
                  {yun:}if $rows{/yun}
                    <tr>
                    <th width="20">&nbsp;</th>
                    <th>产品名称</th>
                    <th>添加时间</th>
                    <th>状态 </th>
                    <th width="200">操作</th>
                      </tr>
           {yun:}/if{/yun}
                {yun:}foreach item=job from=$rows{/yun}
                    <tr>
               <td><input class="job_news_input" type='checkbox' name="delid[]" value="{yun:}$job.id{/yun}" >   </td>
                 <td><a href="{yun:}url m=company c=productshow id='`$uid`' pid='`$job.id`'{/yun}" target="_blank">{yun:}$job.title{/yun}</a>   </td>
                <td align="center">{yun:}$job.ctime|date_format:'%Y-%m-%d'{/yun}   </td>
                   <td align="center">{yun:}if $job.status=="0"{/yun} <span class="wate_verify">等待审核</span>{yun:}/if{/yun}
                    {yun:}if $job.status=="1"{/yun} <span class="y_verify">已审核</span>{yun:}/if{/yun}
                    {yun:}if $job.status=="2"{/yun} <span class="n_verify">未通过</span> | <a href="javascript:;" class="looklist" onclick="show_msg('{yun:}$job.id{/yun}')" style="display:inline">查看原因</a>{yun:}/if{/yun}    </td>
                 <td>
                <a href="{yun:}url m=company c=productshow id=$uid pid=$job.id{/yun}" target="_blank"  class=" com_bth cblue">预览</a>
                <a href="index.php?c=product&act=edit&id={yun:}$job.id{/yun}"  class=" com_bth cblue">修改</a>
                <a href="javascript:void(0)" onclick="layer_del('确定要删除？', 'index.php?c=product&act=del&id={yun:}$job.id{/yun}')"  class=" com_bth cblue">删除</a>   </td>
                 </tr>
                {yun:}foreachelse{/yun}
                {yun:}if $smarty.get.keyword!="" {/yun}
                <tr>
                  <td colspan="8" class="table_end">
	<div class="msg_no">没有搜索到相关的企业产品信息。</div>
     </td>
          
                </tr>
                {yun:}else{/yun}
                 <tr>
                  <td colspan="8" class="table_end">
                  <div class="com_msg_no">
                 <p>亲爱的用户，目前您还没有上传企业产品信息</p>
  <p>立即上传产品信息，展示图最佳尺寸：270*180</p>
               <a href="index.php?c=product&act=add" class="com_msg_no_bth com_submit">点击添加</a>
                </td>
          
                </tr>
                {yun:}/if{/yun}
              
                {yun:}/foreach{/yun}
        
          
		  {yun:}if $rows{/yun}  <tr>
                  <td colspan="8" class="table_end">
			 <div class="com_Release_job_bot">
		 <span class="com_Release_job_qx"><input id='checkAll'  type="checkbox" onclick='m_checkAll(this.form)'> 全选</span>
			  <input class=c_btn_02 type="button" name="subdel" value="批量删除" onclick="return really('delid[]');"> 
			  </span> 
			</div>    
			  <div class="diggg">{yun:}$pagenav{/yun}</div>
                </td>
          
                </tr>
			  {yun:}/if{/yun}
              </form>
         </table>
                  </div>
      </div>
    </div>
  </div>

</div>
<script>
function show_msg(id){
	$.post("index.php?c=product&act=show",{id:id},function(data){
		if(data){
			data=eval('('+data+')');
			$("#msgs").html(data.statusbody);
			var layindex = $.layer({
				type : 1,
				title :'查看原因', 
				closeBtn : [0 , true],
				border : [10 , 0.3 , '#000', true],
				area : ['400px','200px'],
				page : {dom :"#showmsg"}
			});
			$("#layindex").val(layindex);
		}
	});
}
</script>
<div id="showmsg"  style="display:none; width: 400px;">
	<div>
    <div id="infobox">
		 <div class="admin_Operating_sh" style="padding:10px; ">
		<div class="admin_Operating_sh_h1" style="padding:5px;"><div style="height:80px;overflow:auto;" id="msgs"></div></div>
		<div class="admin_Operating_sub" style="margin-top:10px;"> 
          &nbsp;&nbsp;<input type="button" onClick="layer.close($('#layindex').val());" class="cancel_btn" value='确认'></div>
		</div>
    </div>
  </div>
</div>
{yun:}include file="$comstyle/footer.htm"{/yun} 